<style src="../../style/contentTable.css" scoped></style>
<template>
  <div class="containerTable">
    <!--表5蔬菜生产经营实体表T_VegProsecution-->
    <Row class="divSearch">
            <Col span="24" class="col-margin">
            <label class="searchLabel">县&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(市):</label>
                <Select v-model="searchModel.AreaCode"  placeholder="请选择..." style="width: 100px" @on-change="getPageData()">
                    <Option :value="userInfo.AreaCode">{{(userInfo.AreaCode=='530000000000')?'全省':'全市（州）'}}</Option>
                    <Option :value="item.value" v-for="item in AreaList" :key="item.value">{{item.label}}</Option>
                </Select>
            <!--<Cascader :data="AreaList" change-on-select @on-change='SearchCascaderChange' style="width: 200px;float: left;margin-right: 5px;"></Cascader>-->

            <!--根据需求删除不不要查询条件-->
            填报年度：
            <Select v-model="searchModel.FillInYear" placeholder="全部" style="width: 100px" @on-change="getPageData()">
                <Option value="">全部</Option>
                <Option :value="item.DictValue" v-for="item in CreateYearList" :key="item.DictValue">{{item.DictText}}</Option>
            </Select>
            <!--时间周期：
            <Select v-model="searchModel.TimesType" placeholder="全部" style="width: 100px" @on-change="getPageData()">
                <Option value="">全部</Option>
                <Option :value="item.DictValue" v-for="item in CycleList" :key="item.DictValue">{{item.DictText}}</Option>
            </Select>-->
            报表状态：
            <Select v-model="searchModel.Status" placeholder="全部" :label-in-value="true" @on-change="getPageData()" style="width:200px">
               <Option value="">全部</Option>
                <Option v-for="item in statusList" :value="item.DictValue" :key="item.DictValue">{{ item.DictText }}</Option>
            </Select>
            <Button icon="ios-search" type="ghost" @click="getPageData()">查询</Button>
            </Col>
        </Row>
        <Row>
            <Col span="24" class="col-margin">
            <Table size="small" @on-select="selectSingel" @on-select-all="selectAll" :height="clientHeight" border :context="ctx" :columns="columnsList" :data="datas.rows" no-data-text='暂无数据...'></Table>
            </Col>
        </Row>
        <Row>
            <Col span="24">
            <Page class="page-style" :total="datas.total" placement="top" @on-change="getPageNumber" :page-size="searchModel.PageSize" :page-size-opts='pageSizeOpts' show-sizer @on-page-size-change="getPageSize" show-total show-elevator></Page>
            </Col>
        </Row>
        <!-- <Modal v-model="showType" :mask-closable="false" width="1200">
            <p slot="header" class="title">
                <Icon type="ios-paper" size="20"></Icon>
                <span style="font-size: 20px">生产经营实体情况</span>
            </p>
            <p slot="close">
                <Icon type="close-circled" color="red" size=25></Icon>
            </p>
            <table class="reptable">
                <caption style="font-size: 24px;">水果生产经营实体情况(全面统计)</caption>
                <tr style="text-align:center">
                    <td  colspan="4" width="200px">类型</td>
                    <td width="50px">单位</td>
                    <td >数量</td>
                </tr>
                <tr>
                    <th colspan="4" style="text-align:left;">一.水果企业</td>
                    <th>个</th>
                    <th>{{DataModel.FruCompanyNum}}</th>
                </tr>
                <tr>
                    <td rowspan="14">水果企业</td>
                    <td min-width="30px" colspan="3">种植企业</td>
                    <td>个</td>
                    <td>{{convertNum(DataModel.ZzNum_pro+DataModel.ZzNum_city+DataModel.ZzNum_singel)}}</td>
                </tr>
                <tr>
                    <td rowspan="3" width="40px" style="border-right:none;"></td>
                    <td rowspan="3" width="100px" style="border-left:none;">其中</td>
                    <td >省级及以上龙头企业</td>
                    <td>个</td>
                    <td>{{DataModel.ZzNum_pro}}</td>
                </tr>
                <tr>  
                    <td>州县（市）级龙头企业</td>
                    <td>个</td>
                    <td>{{DataModel.ZzNum_city}}</td>
                </tr>
                <tr>
                    <td>个体工商户</span></td>
                    <td>个</td>
                    <td>{{DataModel.ZzNum_singel}}</td>
                </tr>
                <tr>
                    <td rowspan="6" width="40px" style="border-right:none;"></td>
                    <td rowspan="6" width="100px" style="border-left:none;">营业额</td>
                    <td>1000万元以下</span></td>
                    <td>个</td>
                    <td>{{DataModel.ZzNum_yye1}}</td>
                </tr>
                <tr>  
                    <td>1000～5000万元</span></td>
                    <td>个</td>
                    <td>{{DataModel.ZzNum_yye2}}</td>
                </tr>
                <tr>
                    <td>5000～10000万元</span></td>
                    <td>个</td>
                    <td>{{DataModel.ZzNum_yye3}}</td>
                </tr>
                <tr>
                    <td>1亿元以上</span></td>
                    <td>个</td>
                    <td>{{DataModel.ZzNum_yye4}}</td>
                </tr><tr>
                    <td>5亿元以上</span></td>
                    <td>个</td>
                    <td>{{DataModel.ZzNum_yye5}}</td>
                </tr><tr>
                    <td>10亿元以上</span></td>
                    <td>个</td>
                    <td>{{DataModel.ZzNum_yye6}}</td>
                </tr>
                <tr>
                    <td colspan="3">从事水果产品加工的企业</td>
                    <td>个</td>
                    <td>{{DataModel.SgjgNum}}</td>
                </tr>
                <tr>
                    <td colspan="3">从事水果营销的企业</td>
                    <td>个</td>
                    <td>{{DataModel.SgyxNum}}</td>
                </tr>
                <tr>
                    <td rowspan="2" width="40px" style="border-right:none;"></td>
                    <td rowspan="2" width="100px" style="border-left:none;">其中</td>
                    <td>水果外贸的企业</td>
                    <td>个</td>
                    <td>{{DataModel.SgwmNum}}</td>
                </tr>
                <tr>  
                    <td>开展电子商务的企业</td>
                    <td>个</td>
                    <td>{{DataModel.DzswNum}}</td>
                </tr>
                <tr>
                    <th colspan="4" style="text-align:left;">二.水果生产合作组织</th>
                    <th>个</th>
                    <th>{{DataModel.HzNum}}</th>
                </tr>
                <tr>
                    <td rowspan="3">水果生产合作组织</td>
                    <td rowspan="3" style="border-right:none;"></td>
                    <td rowspan="3" width="10px" style="border-left:none;">其中</td>
                    <td>1.水果专业合作组织数量</td>
                    <td>个</td>
                    <td>{{DataModel.ZyhzNum}}</td>
                </tr>
                <tr>
                    <td>2.参加农民合作组织农户数</td>
                    <td>个</td>
                    <td>{{DataModel.NhhzNum}}</td>
                </tr>
                <tr>
                    <td>3.农民专业合作组织种植面积</td>
                    <td>个</td>
                    <td>{{DataModel.NmzyhzNum}}</td>
                </tr>
                <tr>
                    <th colspan="4" style="text-align:left;">三.从事水果种植的农户数</td>
                    <th>个</th>
                    <th>{{DataModel.SgzzNhNum}}</th>
                </tr>
                <tr>
                    <td  rowspan="4">从事水果种植的农户数</td>
                    <td  colspan="3">种植大户</td>
                    <td>个</td>
                    <td>{{DataModel.ZZDHNum}}</td>
                </tr>
                <tr>
                    <td rowspan="3" style="border-right:none;"></td>
                    <td rowspan="3" style="border-left:none;">其中</td>
                    <td>1.100亩以下</td>
                    <td>个</td>
                    <td>{{DataModel.ZZDHOne}}</td>
                </tr>
                <tr>
                    <td>2.100亩-500亩</td>
                    <td>个</td>
                    <td>{{DataModel.ZZDHTwo}}</td>
                </tr>
                <tr>
                    <td>3.500亩以上</td>
                    <td>个</td>
                    <td>{{DataModel.ZZDHThree}}</td>
                </tr>
                <tr>
                    <th colspan="6" style="text-align:left;">四.育苗基地</th>
                </tr>
                <tr>
                    <td  rowspan="2">育苗基地</td>
                    <td  colspan="3">育苗基地数量</td>
                    <td>个</td>
                    <td>{{DataModel.YmjdNum}}</td>
                </tr>
                <tr>
                    <td width="40px" min-width="30px" colspan="3">育苗数量</td>
                    <td>万株</td>
                    <td>{{DataModel.YmNum}}</td>
                </tr>
                <tr>
                    <th width="40px" min-width="30px" colspan="4" style="text-align:left;">五.相关质量标准认证情况</th>
                    <th></th>
                    <th></th>
                </tr>
                <tr>
                    <td width="50px" rowspan="12">相关质量标准认证情况</td>
                    <td width="40px" min-width="30px" colspan="3">1.国家级农业标准化示范县数量</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_sfx}}</td>
                </tr>
                <tr>
                    <td width="40px" min-width="30px" colspan="3">2.出口食品农产品质量安全示范区数量</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_sfq}}</td>
                </tr>
                <tr>
                    <td width="40px" min-width="30px" colspan="3">3.注册商标数</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_sbs}}</td>
                </tr>
                <tr>
                    <td width="40px" min-width="30px" colspan="3">4.出口基地备案面积</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_bamj}}</td>
                </tr><tr>
                    <td width="40px" min-width="30px" colspan="3">5.GAP认证面积</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_rzmj}}</td>
                </tr><tr>
                    <td width="40px" min-width="30px" colspan="3">6.GAP认证产品数量</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_rzsl}}</td>
                </tr><tr>
                    <td width="40px" min-width="30px" colspan="3">7.无公害农产品数</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_wghmj}}</td>
                </tr><tr>
                    <td width="40px" min-width="30px" colspan="3">8.无公害农产品认证面积</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_bluecp}}</td>
                </tr><tr>
                    <td width="40px" min-width="30px" colspan="3">9.绿色产品数</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_bluecpmj}}</td>
                </tr><tr>
                    <td width="40px" min-width="30px" colspan="3">10.绿色产品认证面积</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_dlsb}}</td>
                </tr><tr>
                    <td width="40px" min-width="30px" colspan="3">11.地理标志证明商标数</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_dlbh}}</td>
                </tr><tr>
                    <td width="40px" min-width="30px" colspan="3">12.地理标志产品保护认证数</td>
                    <td>个</td>
                    <td>{{DataModel.ZlrzNum_wghNum}}</td>
                </tr>
            </table>
            <div slot="footer">
                <div style="text-align:right;padding-top:5px">
                    <Button type="primary" @click="saveSure()">审核通过</Button>
                    <Button type="warning" @click="savenUnSure()">审核不通过</Button>
                </div>
                <Alert style="margin-top:5px;text-align:left" banner type="error">
                    填报说明: 1.全省范围内从乡（镇）推广站起，逐级全面统计，由州（市）汇总后上报。
                    <span slot="desc">
                    </span>
                </Alert>
            </div>
        </Modal> -->
        <Modal v-model="showType" :mask-closable="false" width="1000" :styles="{top: '20px'}">
            <p slot="header" class="title">
                <Icon type="ios-paper" size="20"></Icon>
                <span style="font-size: 20px">{{ReportYear}}-{{AreaCodeName}}-生产经营实体情况表（全面统计）</span>
            </p>
            <p slot="close">
                <Icon type="close-circled" color="red" size=25></Icon>
            </p>
            <table class="ContentTable"> 
                    <thead>                    
                    <tr>
                        <th style="width:50%">名称</th>
                        <th style="width:25%">计量单位</th>
                        <th style="width:25%">数量</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <th style="text-align:left;width:50%">一、水果市场个数</th>
                        <th style="width:25%">个</th>
                        <th style="width:25%">
                            {{FormatBigNum(DataModel.MarketNum)}}                           
                        </th>
                    </tr>
                    <tr>
                        <td style="width:50%">其中：产地性市场</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.CdxMarket)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">专业批发市场</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZypfMarket)}}                           
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">区域性综合批发市场</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.QyxzhpfMarket)}}                            
                        </td>
                    </tr>
                    <tr>
                        <th style="text-align:left;width:50%">二、水果企业个数</th>
                        <th style="width:25%">个</th>
                        <th style="width:25%">
                            {{FormatBigNum(DataModel.FruCompanyNum)}}                            
                        </th>
                    </tr>
                    <tr>
                        <td style="width:50%">其中：国家级龙头企业</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_country)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">省级龙头企业</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_pro)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">州（市）级龙头企业</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_city)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">县（市、区）级龙头企业</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_county)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">其他</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_other)}}                            
                        </td>
                    </tr>                     
                    <tr>
                        <th colspan="3" style="text-align:left;width:50%">三、水果农民合作社</th>                        
                    </tr>
                    <tr>
                        <td style="width:50%">1.农民合作社数量</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.HzNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">2.参加农民合作社农户数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.NhhzNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">3.农民专业合作组织经营面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.NmzyhzNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">其中：流转土地面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.HzlzArea)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">4.农民合作社年销售收入</td>
                        <td style="text-align:center;width:25%">万元</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.NmhzYincome)}}</td>
                    </tr>
                    <tr>
                        <th colspan="3" style="text-align:left;width:50%">四、水果家庭农场</th>                       
                    </tr>
                    <tr>
                        <td style="width:50%">1.水果家庭农场数量</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtncNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">2.参加水果家庭农场农户数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtncnhNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">3.水果家庭农场经营面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtncjyArea)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">其中：流转土地面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtnclzArea)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">4.水果家庭农场年销售收入</td>
                        <td style="text-align:center;width:25%">万元</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtncYincome)}}</td>
                    </tr>
                    <tr>
                        <th colspan="3" style="text-align:left;width:50%">五、相关质量标准认证情况</th>                        
                    </tr>
                    <tr>
                        <td style="width:50%">（一）国家级农业标准化示范县数量</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_sfx)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（二）出口食品农产品质量安全示范区数量</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_sfq)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（三）中国驰名商标数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZgcmsbNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（四）中国名牌产品数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZgmpcpNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（五）云南省著名商标数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.YnszmsbNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（六）无公害农产品数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_wghNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（七）无公害农产品认证面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_wghmj)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（八）绿色产品数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_bluecp)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（九）绿色产品认证面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_bluecpmj)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（十）地理标志证明商标数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_dlsb)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（十一）地理标志产品保护认证数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_dlbh)}}</td>
                    </tr> 
                    </tbody>
                </table>
            <div slot="footer" style="padding-bottom:50px">
                <div style="padding-top:5px">
                    <Button type="success" @click="toAlertCheckResult()" style="margin-right:50px">数据检测</Button>
                    <Button type="primary" @click="saveSure()">审核通过</Button>
                    <Button type="warning" @click="savenUnSure()">退回重报</Button>
                </div>
                <Alert style="margin-top:5px;text-align:left" banner type="error">
                    填报时间：每年1月10日</br>
                    填报说明: 1.全省范围内从乡（镇）起，逐级全面统计，由县级填报经州（市）审核后上报。
                    <span slot="desc">
                    </span>
                </Alert>
            </div>
        </Modal>
        <Modal v-model="showAudit" :mask-closable="false" width="500">
            <p slot="header" class="title">
                <Icon type="ios-paper" size="20"></Icon>
                <span style="font-size: 20px">退回重报原因</span>
            </p>
            <p slot="close">
                <Icon type="close-circled" color="red" size=25></Icon>
            </p>
            <Input type="textarea" :rows="4" v-model="strMsg" placeholder="请输入不通过原因..."></Input>
            <div slot="footer">
                <Button type="primary" @click="sureUnSure()">确定</Button>
                <Button type="ghost" @click="cancelUnSure()" style="margin-left: 8px">取消</Button>
            </div>
        </Modal>
        <!-- <Modal v-model="ViewShow" :mask-closable="false" width="800">
            <p slot="header" class="title">
                <Icon type="ios-paper" size="20"></Icon>
                <span style="font-size: 20px">生产经营实体情况</span>
            </p>
            <p slot="close">
                <Icon type="close-circled" color="red" size=25></Icon>
            </p>
                <table class="reptable">
                    <caption style="font-size: 24px;">水果生产经营实体情况(全面统计)</caption>
                    <tr style="text-align:center">
                        <td  colspan="4" width="200px">类型</td>
                        <td width="50px">单位</td>
                        <td >数量</td>
                    </tr>
                    <tr>
                        <th colspan="4" style="text-align:left;">一.水果企业</td>
                        <th>个</th>
                        <th>{{DataModel.FruCompanyNum}}</th>
                    </tr>
                    <tr>
                        <td rowspan="14">水果企业</td>
                        <td min-width="30px" colspan="3">种植企业</td>
                        <td>个</td>
                        <td>{{convertNum(DataModel.ZzNum_pro+DataModel.ZzNum_city+DataModel.ZzNum_singel)}}</td>
                    </tr>
                    <tr>
                        <td rowspan="3" width="40px" style="border-right:none;"></td>
                        <td rowspan="3" width="100px" style="border-left:none;">其中</td>
                        <td >省级及以上龙头企业</td>
                        <td>个</td>
                        <td>{{DataModel.ZzNum_pro}}</td>
                    </tr>
                    <tr>  
                        <td>州县（市）级龙头企业</td>
                        <td>个</td>
                        <td>{{DataModel.ZzNum_city}}</td>
                    </tr>
                    <tr>
                        <td>个体工商户</span></td>
                        <td>个</td>
                        <td>{{DataModel.ZzNum_singel}}</td>
                    </tr>
                    <tr>
                        <td rowspan="6" width="40px" style="border-right:none;"></td>
                        <td rowspan="6" width="100px" style="border-left:none;">营业额</td>
                        <td>1000万元以下</span></td>
                        <td>个</td>
                        <td>{{DataModel.ZzNum_yye1}}</td>
                    </tr>
                    <tr>  
                        <td>1000～5000万元</span></td>
                        <td>个</td>
                        <td>{{DataModel.ZzNum_yye2}}</td>
                    </tr>
                    <tr>
                        <td>5000～10000万元</span></td>
                        <td>个</td>
                        <td>{{DataModel.ZzNum_yye3}}</td>
                    </tr>
                    <tr>
                        <td>1亿元以上</span></td>
                        <td>个</td>
                        <td>{{DataModel.ZzNum_yye4}}</td>
                    </tr><tr>
                        <td>5亿元以上</span></td>
                        <td>个</td>
                        <td>{{DataModel.ZzNum_yye5}}</td>
                    </tr><tr>
                        <td>10亿元以上</span></td>
                        <td>个</td>
                        <td>{{DataModel.ZzNum_yye6}}</td>
                    </tr>
                    <tr>
                        <td colspan="3">从事水果产品加工的企业</td>
                        <td>个</td>
                        <td>{{DataModel.SgjgNum}}</td>
                    </tr>
                    <tr>
                        <td colspan="3">从事水果营销的企业</td>
                        <td>个</td>
                        <td>{{DataModel.SgyxNum}}</td>
                    </tr>
                    <tr>
                        <td rowspan="2" width="40px" style="border-right:none;"></td>
                        <td rowspan="2" width="100px" style="border-left:none;">其中</td>
                        <td>水果外贸的企业</td>
                        <td>个</td>
                        <td>{{DataModel.SgwmNum}}</td>
                    </tr>
                    <tr>  
                        <td>开展电子商务的企业</td>
                        <td>个</td>
                        <td>{{DataModel.DzswNum}}</td>
                    </tr>
                    <tr>
                        <th colspan="4" style="text-align:left;">二.水果生产合作组织</th>
                        <th>个</th>
                        <th>{{DataModel.HzNum}}</th>
                    </tr>
                    <tr>
                        <td rowspan="3">水果生产合作组织</td>
                        <td rowspan="3" style="border-right:none;"></td>
                        <td rowspan="3" width="10px" style="border-left:none;">其中</td>
                        <td>1.水果专业合作组织数量</td>
                        <td>个</td>
                        <td>{{DataModel.ZyhzNum}}</td>
                    </tr>
                    <tr>
                        <td>2.参加农民合作组织农户数</td>
                        <td>个</td>
                        <td>{{DataModel.NhhzNum}}</td>
                    </tr>
                    <tr>
                        <td>3.农民专业合作组织种植面积</td>
                        <td>个</td>
                        <td>{{DataModel.NmzyhzNum}}</td>
                    </tr>
                    <tr>
                        <th colspan="4" style="text-align:left;">三.从事水果种植的农户数</td>
                        <th>个</th>
                        <th>{{DataModel.SgzzNhNum}}</th>
                    </tr>
                    <tr>
                        <td  rowspan="4">从事水果种植的农户数</td>
                        <td  colspan="3">种植大户</td>
                        <td>个</td>
                        <td>{{DataModel.ZZDHNum}}</td>
                    </tr>
                    <tr>
                        <td rowspan="3" style="border-right:none;"></td>
                        <td rowspan="3" style="border-left:none;">其中</td>
                        <td>1.100亩以下</td>
                        <td>个</td>
                        <td>{{DataModel.ZZDHOne}}</td>
                    </tr>
                    <tr>
                        <td>2.100亩-500亩</td>
                        <td>个</td>
                        <td>{{DataModel.ZZDHTwo}}</td>
                    </tr>
                    <tr>
                        <td>3.500亩以上</td>
                        <td>个</td>
                        <td>{{DataModel.ZZDHThree}}</td>
                    </tr>
                    <tr>
                        <th colspan="6" style="text-align:left;">四.育苗基地</th>
                    </tr>
                    <tr>
                        <td  rowspan="2">育苗基地</td>
                        <td  colspan="3">育苗基地数量</td>
                        <td>个</td>
                        <td>{{DataModel.YmjdNum}}</td>
                    </tr>
                    <tr>
                        <td width="40px" min-width="30px" colspan="3">育苗数量</td>
                        <td>万株</td>
                        <td>{{DataModel.YmNum}}</td>
                    </tr>
                    <tr>
                        <th width="40px" min-width="30px" colspan="4" style="text-align:left;">五.相关质量标准认证情况</th>
                        <th></th>
                        <th></th>
                    </tr>
                    <tr>
                        <td width="50px" rowspan="12">相关质量标准认证情况</td>
                        <td width="40px" min-width="30px" colspan="3">1.国家级农业标准化示范县数量</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_sfx}}</td>
                    </tr>
                    <tr>
                        <td width="40px" min-width="30px" colspan="3">2.出口食品农产品质量安全示范区数量</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_sfq}}</td>
                    </tr>
                    <tr>
                        <td width="40px" min-width="30px" colspan="3">3.注册商标数</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_sbs}}</td>
                    </tr>
                    <tr>
                        <td width="40px" min-width="30px" colspan="3">4.出口基地备案面积</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_bamj}}</td>
                    </tr><tr>
                        <td width="40px" min-width="30px" colspan="3">5.GAP认证面积</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_rzmj}}</td>
                    </tr><tr>
                        <td width="40px" min-width="30px" colspan="3">6.GAP认证产品数量</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_rzsl}}</td>
                    </tr><tr>
                        <td width="40px" min-width="30px" colspan="3">7.无公害农产品数</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_wghmj}}</td>
                    </tr><tr>
                        <td width="40px" min-width="30px" colspan="3">8.无公害农产品认证面积</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_bluecp}}</td>
                    </tr><tr>
                        <td width="40px" min-width="30px" colspan="3">9.绿色产品数</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_bluecpmj}}</td>
                    </tr><tr>
                        <td width="40px" min-width="30px" colspan="3">10.绿色产品认证面积</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_dlsb}}</td>
                    </tr><tr>
                        <td width="40px" min-width="30px" colspan="3">11.地理标志证明商标数</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_dlbh}}</td>
                    </tr><tr>
                        <td width="40px" min-width="30px" colspan="3">12.地理标志产品保护认证数</td>
                        <td>个</td>
                        <td>{{DataModel.ZlrzNum_wghNum}}</td>
                    </tr>
                </table>
            <div slot="footer">
                <Alert style="margin-top:5px;text-align:left" banner type="error">
                    填报说明: 1.全省范围内从乡（镇）推广站起，逐级全面统计，由州（市）汇总后上报。
                    <span slot="desc">
                    </span>
                </Alert>
            </div>
        </Modal> -->
        <Modal v-model="ViewShow" :mask-closable="false" width="1000" :styles="{top: '20px'}">
            <p slot="header" class="title">
                <Icon type="ios-paper" size="20"></Icon>
                <span style="font-size: 20px">{{ReportYear}}-{{AreaCodeName}}-生产经营实体情况表（全面统计）</span>
            </p>
            <p slot="close">
                <Icon type="close-circled" color="red" size=25></Icon>
            </p>
                <table class="ContentTable"> 
                    <thead>                    
                    <tr>
                        <th style="width:50%">名称</th>
                        <th style="width:25%">计量单位</th>
                        <th style="width:25%">数量</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <th style="text-align:left;width:50%">一、水果市场个数</th>
                        <th style="width:25%">个</th>
                        <th style="width:25%">
                            {{FormatBigNum(DataModel.MarketNum)}}                           
                        </th>
                    </tr>
                    <tr>
                        <td style="width:50%">其中：产地性市场</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.CdxMarket)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">专业批发市场</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZypfMarket)}}                           
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">区域性综合批发市场</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.QyxzhpfMarket)}}                            
                        </td>
                    </tr>
                    <tr>
                        <th style="text-align:left;width:50%">二、水果企业个数</th>
                        <th style="width:25%">个</th>
                        <th style="width:25%">
                            {{FormatBigNum(DataModel.FruCompanyNum)}}                            
                        </th>
                    </tr>
                    <tr>
                        <td style="width:50%">其中：国家级龙头企业</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_country)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">省级龙头企业</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_pro)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">州（市）级龙头企业</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_city)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">县（市、区）级龙头企业</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_county)}}                            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:50%">其他</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">
                            {{FormatBigNum(DataModel.ZzNum_other)}}                            
                        </td>
                    </tr>                     
                    <tr>
                        <th colspan="3" style="text-align:left;width:50%">三、水果农民合作社</th>                        
                    </tr>
                    <tr>
                        <td style="width:50%">1.农民合作社数量</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.HzNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">2.参加农民合作社农户数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.NhhzNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">3.农民专业合作组织经营面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.NmzyhzNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">其中：流转土地面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.HzlzArea)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">4.农民合作社年销售收入</td>
                        <td style="text-align:center;width:25%">万元</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.NmhzYincome)}}</td>
                    </tr>
                    <tr>
                        <th colspan="3" style="text-align:left;width:50%">四、水果家庭农场</th>                       
                    </tr>
                    <tr>
                        <td style="width:50%">1.水果家庭农场数量</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtncNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">2.参加水果家庭农场农户数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtncnhNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">3.水果家庭农场经营面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtncjyArea)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">其中：流转土地面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtnclzArea)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">4.水果家庭农场年销售收入</td>
                        <td style="text-align:center;width:25%">万元</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.JtncYincome)}}</td>
                    </tr>
                    <tr>
                        <th colspan="3" style="text-align:left;width:50%">五、相关质量标准认证情况</th>                        
                    </tr>
                    <tr>
                        <td style="width:50%">（一）国家级农业标准化示范县数量</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_sfx)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（二）出口食品农产品质量安全示范区数量</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_sfq)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（三）中国驰名商标数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZgcmsbNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（四）中国名牌产品数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZgmpcpNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（五）云南省著名商标数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.YnszmsbNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（六）无公害农产品数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_wghNum)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（七）无公害农产品认证面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_wghmj)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（八）绿色产品数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_bluecp)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（九）绿色产品认证面积</td>
                        <td style="text-align:center;width:25%">亩</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_bluecpmj)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（十）地理标志证明商标数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_dlsb)}}</td>
                    </tr>
                    <tr>
                        <td style="width:50%">（十一）地理标志产品保护认证数</td>
                        <td style="text-align:center;width:25%">个</td>
                        <td style="width:25%">{{FormatBigNum(DataModel.ZlrzNum_dlbh)}}</td>
                    </tr> 
                    </tbody>
                </table>
            <div slot="footer" style="padding-bottom:50px">
                <Alert style="margin-top:5px;text-align:left" banner type="error">
                    填报时间：每年1月10日</br>
                    填报说明: 1.全省范围内从乡（镇）起，逐级全面统计，由县级填报经州（市）审核后上报。
                    <span slot="desc">
                    </span>
                </Alert>
            </div>
        </Modal>
    </div>
</template>
<script>
export default {
  data() {
    return {
      ReportYear: "",
      AreaCodeName: "",
      ViewShow: false, //查看状态
      Id: "",
      showAudit: false,
      strMsg: "",
      userInfo: this.GetlocaStorage("fruuserinfo"),
      statusList: this.GetGroupDict("ReportStatus"),
      AreaList: [], //所属行政区划数组,
      TableCodeList: this.GetGroupDict("ReportTableName"), //表名称
      CreateYearList: this.GetGroupDict("ReportYear"), //周期
      CycleList: this.GetGroupDict("ReportCycle"), //
      TabTitleList: [], //tab选项卡列表
      selectTabName: "",
      showType: false, //编辑框弹出状态
      ruleValidate: {
        //验证模型
        TableName: [{ required: true, message: "报表名称不能为空", trigger: "blur" }],
        TableCode: [{ required: true, message: "报表代码不能为空", trigger: "blur" }],
        CreateYear: [{ required: true, message: "年度不能为空", trigger: "blur" }],
        Cycle: [{ required: true, message: "时间周期不能为空", trigger: "blur" }],
        CreateTime: [{ required: true, message: "生成时间不能为空", trigger: "blur" }]
      },
      DataModel: {
        //编辑模型
        Id: 0,
        ReportId: "",       
        FruCompanyNum: "",
        ZzNum_country: "",
        ZzNum_pro: "",
        ZzNum_city: "",
        ZzNum_county: "",
        ZzNum_other: "",
        ZzNum_singel: "",
        ZzNum_yye1: "",
        ZzNum_yye2: "",
        ZzNum_yye3: "",
        ZzNum_yye4: "",
        ZzNum_yye5: "",
        ZzNum_yye6: "",
        SgjgNum: "",
        SgyxNum: "",
        SgwmNum: "",
        NmzyhzNum: "",
        SgzzNhNum: "",
        ZZDHNum: "",
        ZZDHOne: "",
        ZZDHTwo: "",
        ZZDHThree: "",
        YmjdNum: "",
        YmNum: "",
        DzswNum: "",
        HzNum: "",
        ZyhzNum: "",
        NhhzNum: "",
        HzlzArea: "",
        NmhzYincome: "",
        ZgcmsbNum: "",
        ZgmpcpNum: "",
        YnszmsbNum: "",
        MarketNum: "",
        CdxMarket: "",
        ZypfMarket: "",
        QyxzhpfMarket: "",
        JtncNum: "",
        JtncnhNum: "",
        JtncjyArea: "",
        JtnclzArea: "",
        JtncYincome: "",
        ZlrzNum_sfx: "",
        ZlrzNum_sfq: "",
        ZlrzNum_sbs: "",
        ZlrzNum_bamj: "",
        ZlrzNum_rzmj: "",
        ZlrzNum_rzsl: "",
        ZlrzNum_wghmj: "",
        ZlrzNum_bluecp: "",
        ZlrzNum_bluecpmj: "",
        ZlrzNum_dlsb: "",
        ZlrzNum_dlbh: "",
        ZlrzNum_wghNum: "",
        ReportStatus: ""
      },
      //查询模型：根据需求删除不不要查询条件
      searchModel: {
        ReportCode: "FruProsecution",
        FillInYear: new Date().getFullYear() + "",
        TimesType: "",
        AreaCode: "",
        Status: "",
        PageNumber: 1,
        PageSize: 20
      },
      pageSizeOpts: [20, 40, 50], //默认分页最大设置
      datas: {}, //table数据对象
      dataIds: [],
      ctx: this, //table数据上下文
      columnsList: [
        //表头对象
        { title: "报表名称", key: "ReportName" },
        //{ title: "填报年度", key: "FillInYear", width: 90 },
        { title: "属行政区划", key: "AreaCodeName", width: 220 },
        //{ title: "填报周期", key: "TimesCycle", width: 90 },
        {
          title: "报表状态",
          key: "StatusName",
          width: 100,
          render: (h, params) => {
            switch (params.row.Status * 1) {
              case 0:
                return h(
                  "span",
                  { style: { color: "#ed3f14" } },
                  params.row.StatusName
                );
              case 1:
                return h(
                  "span",
                  { style: { color: "#ff9900" } },
                  params.row.StatusName
                );
              case 2:
                return h(
                  "span",
                  { style: { color: "#993300" } },
                  params.row.StatusName
                );
              case 3:
                return h(
                  "span",
                  { style: { color: "#2d8cf0" } },
                  params.row.StatusName
                );
              case 4:
                return h(
                  "span",
                  { style: { color: "#19be6b" } },
                  params.row.StatusName
                );
              case 5:
                return h(
                  "span",
                  { style: { color: "#80848f" } },
                  params.row.StatusName
                );
              default:
                return h(
                  "span",
                  { style: { color: "#ff9900" } },
                  params.row.StatusName
                );
            }
          }
        },
        { title: "填报时间", key: "StrUpdateTime", width: 160 },
        {
          title: "操作",
          key: "Id",
          width: 250,
          align: "center",
          render: (h, params) => {
            return h("div", [
              h(
                "Button",
                {
                  class: {
                    ieditColor: true
                  },
                  props: {
                    size: "small",
                    type: "ghost",
                    icon: "ios-paper-outline"
                  },
                  style: {
                    marginRight: "5px"
                  },
                  on: {
                    click: () => {
                      this.ReportYear = params.row.FillInYear;
                      this.AreaCodeName = params.row.AreaCodeName;
                      this.showInfo(
                        params.row.FillInYearName,
                        params.row.AreaCode
                      );
                    }
                  }
                },
                "查看"
              ),
              h(
                "Button",
                {
                  class: {
                    ieditColor: true
                  },
                  props: {
                    size: "small",
                    type: "ghost",
                    icon: "network"
                  },
                  style: {
                    marginRight: "5px"
                  },
                  on: {
                    click: () => {
                      this.ReportYear = params.row.FillInYear;
                      this.AreaCodeName = params.row.AreaCodeName;
                      this.editInfo(
                        params.row.FillInYearName,
                        params.row.AreaCode
                      );
                    }
                  },
                  attrs: {
                    disabled: params.row.Status == 3 ? false : true
                  }
                },
                "审核"
              ),
              h(
                "Button",
                {
                  class: {
                    ieditColor: true
                  },
                  props: {
                    size: "small",
                    type: "ghost",
                    icon: "ios-undo"
                  },
                  style: {
                    marginRight: "5px"
                  },
                  on: {
                    click: () => {
                      this.unReview(params.row.Id, params.row.ReportCode);
                    }
                  },
                  attrs: {
                    disabled: params.row.Status == 4 ? false : true
                  },
                  directives: [
                    {
                      name: "omg-operation",
                      value: { op: "unreview" }
                    }
                  ]
                },
                "取消审核"
              )
            ]);
          }
        }
      ],
      clientHeight: window.innerHeight - 260 //表格默认高度
    };
  },
  mounted() {
    //table高度计算方法
    const that = this;
    window.onresize = () => {
      return (() => {
        that.clientHeight = window.innerHeight - 260;
      })();
    };
  },
  methods: {
    convertNum: function(num) {
      //小数点处理
      if (isNaN(num)) {
        return "0";
      }
      return Number(num).toFixed(2);
    },
    //初始化行政区划树
    SearchAreaList() {
      var areaCode = this.userInfo.AreaCode;
      // console.log(areaCode);
      var areaList = [];
      if (areaCode != "530000000000" && areaCode != null) {
        var item = this.GetlocaStorage("areatreelist")[0];
        for (var i = 0; i < item.children.length; i++) {
          if (item.children[i].value == areaCode) {
            areaList.push(item.children[i]);
          }
        }
      } else {
        areaList = this.GetlocaStorage("areatreelist");
      }
      this.AreaList = areaList[0].children;
    },
    getTab(name) {
      //console.log(name);
      this.selectTabName = name;
    },
    showInfo: function(FillInYear, AreaCode) {
      var self = this;
      var model = new Object();
      model.ReportCode = self.searchModel.ReportCode;
      model.FillInYear = FillInYear;
      model.AreaCode = AreaCode;
      self.DataModel = {}; //清空当前数据
      self.$http.post("Report/PostData", model).then(
        //获取数据编辑项的值
        function(res) {
          if (res.data.list.status == 2 || res.data.list.status == 1) {
            if (res.data.list.model != null)
              self.DataModel = res.data.list.model;
            self.ViewShow = true;
          } else {
            self.DataModel = res.data.model;
            self.$Modal.warning({
              title: "提示信息",
              content: res.data.message
            });
            self.BtnSaveStatus = false;
          }
        }
      );
    },
    //获取当前页码
    getPageNumber(pageIndex) {
      this.searchModel.PageNumber = pageIndex;
      this.initPageData();
    },
    //获取当前分页大小
    getPageSize(pageSize) {
      this.searchModel.PageSize = pageSize;
      this.initPageData();
    },
    initPageData() {
      var areaCode = this.userInfo.AreaCode;
      this.searchModel.AreaCode = areaCode;
      this.getPageData();
    },
    //获取this.datas: {},//table数据对象
    getPageData() {
      var self = this;
      self.$http
        .post("Report/PostReviewPageList", this.searchModel)
        .then(function(res) {
          if (res.data.status === 1) {
            self.datas = res.data;
          } else {
            self.$Modal.error({ title: "提示信息", content: res.data.message });
          }
        });
    },
    //编辑获取对象传入id
    // editInfo(id, reportCode) {//编辑
    //     var self = this;
    //     this.Id = id;
    //     this.$http.get("Report", { params: { id: id, reportCode: reportCode } }).then(//获取数据编辑项的值
    //         function (res) {
    //             switch (res.data.list.status) {
    //                 case 1:
    //                     self.DataModel = res.data.list.model;
    //                     self.modalShow();
    //                     break;
    //                 case 0:
    //                     self.$Modal.error({ title: "提示信息", content: "编辑数据加载失败!!!" });
    //                     break;
    //                 case -1:
    //                     self.$Modal.error({ title: "提示信息", content: "编辑数据加载失败!!!" });
    //                     break;
    //             }
    //         }
    //     );
    // },
    editInfo: function(FillInYear, AreaCode) {
      var self = this;
      var model = new Object();
      model.ReportCode = self.searchModel.ReportCode;
      model.FillInYear = FillInYear;
      model.AreaCode = AreaCode;
      self.DataModel = {}; //清空当前数据
      self.$http.post("Report/PostData", model).then(
        //获取数据编辑项的值
        function(res) {
          // console.log(res);
          if (res.data.list.status == 2 || res.data.list.status == 1) {
            if (res.data.list.model != null) {
              self.DataModel = res.data.list.model;
            }
            self.Id = res.data.list.model.ReportId;
            self.showType = true;
          } else {
            self.DataModel = res.data.model;
            self.$Modal.warning({
              title: "提示信息",
              content: res.data.message
            });
            self.BtnSaveStatus = false;
          }
        }
      );
    },
    initTab(self, datas) {
      self.TabTitleList = [];
      for (var i = 0; i < datas.length; i++) {
        if (!self.checkTab(datas[i].SortCode, self)) {
          var item = new Object();
          item.SortCode = datas[i].SortCode;
          item.SortName = datas[i].SortName;
          item.list = [];
          for (var j = 0; j < datas.length; j++) {
            if (datas[j].SortCode == datas[i].SortCode) {
              if (!self.checkItem(item.list, datas[j].ItemCode)) {
                item.list.push(datas[j]);
              }
            }
          }
          self.TabTitleList.push(item);
        }
      }
      return self.TabTitleList;
    },
    checkTab(SortCode, self) {
      var res = false;
      for (var i = 0; i < self.TabTitleList.length; i++) {
        if (self.TabTitleList[i].SortCode == SortCode) {
          res = true;
        }
      }
      return res;
    },
    checkItem(datas, ItemCode) {
      var res = false;
      for (var i = 0; i < datas.length; i++) {
        if (datas[i].ItemCode == ItemCode) {
          res = true;
        }
      }
      return res;
    },
    //删除对象
    delInfo(id) {
      var self = this;
      self.$Modal.confirm({
        title: "提示信息",
        content: "<p>数据删除后不可恢复，确定要删除？</p>",
        onOk: () => {
          this.$http
            .delete("GenerateLog", { params: { id: id } })
            .then(function(res) {
              if (res.data.status == 1) {
                self.$Notice.success({ title: "删除成功！", desc: false });
                self.initPageData();
              } else {
                self.$Modal.error({ title: "提示信息", content: "数据删除失败!!!" });
              }
            });
        }
      });
    },
    //省级取消审核
    unReview(id, reportCode) {
      var model = new Object();
      model.Id = id;
      model.reportType = "0";
      model.strMsg = "省级已取消审核!";
      this.save(model);
    },
    //审核
    save(model) {
      var self = this;
      this.$http.post("Report/PostUpStatus", model).then(function(res) {
        if (res.data.status == 1) {
          self.$Notice.success({ title: "审核完成!", desc: false });
          self.getPageData();
          self.strMsg = "";
          self.modalHide();
        } else {
          self.$Modal.error({ title: "提示信息", content: "数据审核失败!!!" });
        }
      });
    },
    saveSure() {
      var model = new Object();
      model.Id = this.Id;
      model.reportType = "4";
      model.strMsg = "";
      this.save(model);
      this.modalHide();
    },
    //审核未通过
    savenUnSure() {
      var self = this;
      this.showAudit = true;
    },
    sureUnSure() {
      this.showAudit = false;
      var model = new Object();
      model.Id = this.Id;
      model.reportType = "0";
      model.strMsg = this.strMsg;
      this.save(model);
    },
    cancelUnSure() {
      this.showAudit = false;
      //this.modalHide();
      this.strMsg = "";
    },
    checkData(){
    if(this.DataModel.MarketNum != this.DataModel.CdxMarket*1+this.DataModel.ZypfMarket*1+this.DataModel.QyxzhpfMarket*1){
        return '水果市场个数不等于其子项之和！'
    }
    else if(this.DataModel.FruCompanyNum != this.DataModel.ZzNum_country*1+this.DataModel.ZzNum_pro*1+this.DataModel.ZzNum_city*1+this.DataModel.ZzNum_county*1+this.DataModel.ZzNum_other*1){
        return '水果企业个数不等于其子项之和！'
    }
    else{
        return '数据检测无误！'
    }
    },
    toAlertCheckResult(){ 
      var message  = this.checkData();   
      this.$Modal.warning({
        title:'提示信息',
        content:message
      });
    },
    //编辑框打开
    modalShow() {
      this.showType = true;
    },
    //编辑框关闭
    modalHide() {
      this.showType = false;
    },
    //取消方法
    cancel() {
      this.showType = false; //关闭modal
      this.TabTitleList = [];
    },
    //重置model
    restModel(modelname) {
      this.$refs[modelname].resetFields(); //重置model
    },
    //全选方法
    selectAll(selection) {
      this.dataIds = selection;
    },
    //checkbox选中方法
    selectSingel(selection, row) {
      this.dataIds = selection;
    },
    //checkbox取消选中方法
    selecChange(selection) {
      this.dataIds = selection;
    },
    //批量删除
    multiSelect() {
      var self = this;
      if (this.dataIds.length !== 0) {
        self.$Modal.confirm({
          title: "提示信息",
          content: "<p>数据删除后不可恢复，确定要删除？</p>",
          onOk: () => {
            var ids = this.getDataIds(this.dataIds);
            this.$http
              .post("GenerateLog/PostBatchDelete", ids)
              .then(function(res) {
                if (res.data.status == 1) {
                  self.dataIds = [];
                  self.$Notice.success({ title: "删除成功！", desc: false });
                  self.initPageData();
                } else {
                  self.$Modal.error({ title: "提示信息", content: "数据删除失败!!!" });
                }
              });
          }
        });
      } else {
        self.$Modal.warning({ title: "提示信息", content: "请选择需要删除的数据!" });
      }
    },
    getDataIds(idList) {
      var ids = [];
      if (idList.length !== 0) {
        for (var i = 0; i < idList.length; i++) {
          ids.push(idList[i].Id);
        }
      }
      return ids;
    },
    currentYear() {
      let year = new Date().getFullYear();
      let month = new Date().getMonth();
      if (month > 1) {
        this.searchModel.FillInYear = year.toString();
      } else {
        this.searchModel.FillInYear = (year - 1).toString();
      }
    }
  },
  //创建Vue页面方法
  created: function() {
    //创业Vue前调用获取this.datas: {},//table数据对象
    this.currentYear();
    this.initPageData();
    this.SearchAreaList();
  },
  watch: {
    //需要监听的在此处新增监听对象
  }
};
</script>
